<template>
  <view class="demos-page">
    <view class="demo-content">
      <text class="demo-title">案例页面</text>
      <!-- 登录入口（无返回按钮） -->
      <button class="login-entry" @click="gotoLogin">重新登录</button>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    gotoLogin() {
      // 跳转到登录页（关闭当前Tab页，无返回按钮）
      uni.reLaunch({ url: "/pages/login/login" });
    }
  }
};
</script>

<style scoped>
.demos-page {
  padding: 40rpx;
  min-height: 100vh;
  background-color: #f5f5f5;
}
.demo-content {
  background-color: #fff;
  padding: 40rpx;
  border-radius: 12rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}
.demo-title {
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 40rpx;
  display: block;
  text-align: center;
}
.login-entry {
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  background-color: #007AFF;
  color: #fff;
  border-radius: 6rpx;
  font-size: 32rpx;
}
</style>